<div id="edit_debt">
    <div class="form-inline">
        <span class="help-block">Тип долга:</span>
        <label for="type_debt_1" class="columns">Я</label>
        <input type="radio" id="type_debt_1" name="type_debt" <?if ($this->debt->getTypeDebt() == Application_Model_Debt::TYPE_I_HAVE_TO):?>checked="checked"<?endif;?> class="columns" value="<?=Application_Model_Debt::TYPE_I_HAVE_TO?>">
        <label for="type_debt_2" class="columns">Мне</label>
        <input type="radio" id="type_debt_2" name="type_debt" <?if ($this->debt->getTypeDebt() == Application_Model_Debt::TYPE_MY_HAVE_TO):?>checked="checked"<?endif;?> class="columns" value="<?=Application_Model_Debt::TYPE_MY_HAVE_TO?>" >
    </div>
    <label for="name_debt" >Кому отдать / Кто занял:</label>
    <input type="text" id="name_debt" name="name_debt" class="three" value="<?=$this->escape($this->debt->getNameDebter())?>" >
    <label for="summ_debt" >Сумма:</label>
    <input type="number" id="summ_debt" name="summ_debt" class="three" value="<?=$this->escape($this->debt->getDebtSumm())?>">
    <label for="date_debt" >Когда занял:</label>
    <input type="date" id="date_debt" name="date_debt" class="three" value="<?=date('Y-m-d', strtotime($this->debt->getDateDebt()))?>">
    <label for="date_return" >Когда отдать:</label>
    <input type="date" id="date_return" name="date_return" class="three" value="<?=date('Y-m-d', strtotime($this->debt->getDateReturn()))?>">
    <input type="hidden" id="debt_id" name="debt_id"  value="<?=$this->escape($this->debt->getDebtId())?>">
    <div class="form-inline">
        <input type="button" name="submit_debt" class="btn-success" onclick="money.saveDebt()" value="Готово">
        <input type="button" class="btn-danger"  onclick="money.deleteMoney('<?=$this->escape($this->debt->getDebtId())?>', 'debt'); modal.close()" value="Удалить">
    </div>
</div>